import http from '@/util/http'

export function getMenu () {
  return http.get('/menu')
}

export function delMenu (id) {
  return http.delete(`/menus?id=${id}`)
}

export function menuGet () {
  return http.get('/menu/get')
}

export function menuTree () {
  return http.get('/menu/tree')
}

export function addMenu (data) {
  return http.post('/menus', data)
}

export function updateMenu (data) {
  return http.put('/menus', data)
}

